//
//  MYY_VisitiortopView.m
//  meiyinxiang
//
//  Created by 陈李飞 on 2017/10/25.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "MYY_VisitiortopView.h"
#import "MYY_Me_Macro.h"


@interface MYY_VisitiortopView()
@property(nonatomic, strong) UILabel *nameView;


@end

@implementation MYY_VisitiortopView
-(id)init
{
    self = [super init];
    
    if (self) {
        self.backgroundColor =MYYlineColor;
        [self addSubview:self.nameView];
        
        [self.nameView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).with.offset(20);
            make.centerY.equalTo(self);
            
        }];
        
    }
    
    return self;
}


#pragma mark - property


- (UILabel *)nameView
{
    if (_nameView == nil) {
        _nameView = [UILabel new];
        _nameView.backgroundColor = [UIColor clearColor];
        _nameView.numberOfLines = 1;
        _nameView.textColor = MYYtitleColor;
        _nameView.font = [UIFont systemFontOfSize:12.0];
        // _nameView.text = @"收藏";
    }
    return _nameView;
}
-(void)nameStr:(NSString *)nameStr{
    _nameView.text =nameStr;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
